/**
 * 
 */
package org.segoitz_guibert.conditional;

import java.util.Scanner;

/**
 * Simple class to test conditional structures
 * @author segoitz_guibert
 *
 */
public class Conditional {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int number =0;
		String line = ""; /* to store what I read from console */
		
		//Special object to read from console
		Scanner reader = new Scanner(System.in);
		
		System.out.println("Please enter a number");
		line= reader.nextLine();
		
		//Convert String to int
		number= Integer.parseInt(line);
		
		
		if (number > 0 ) {
			System.out.println(number + "is bigger than 0");
		} else {
			if (number<0) {
			System.out.println(number + " is negative");
		}else {
			System.out.println("Is 0");
			
		}
		}
	}
}

		
		
		
		

	


